<?php
/**
 *Copyright (C) 2009  Mirko Schwarz - http://www.webgau.de
 *This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free  		 *Software Foundation; either version 3 of the License, or (at your option) any later version.
 *
 *This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS *FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. 
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<?php 
$zeit =  $this->params->get('zeit');
$rss =  $this->params->get('syndi');
$breite =  $this->params->get('breite');
?>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/august/css/template.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/<?php echo  $this->params->get('color');  ?>.css" type="text/css" />

<?php if($zeit == "on") echo '<script type="text/javascript" src="'.$this->baseurl.'/templates/'.$this->template.'/js/zeit.js"></script>'; ?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/stylechanger.js"></script>

<style type="text/css">
.breite
{
	width: <?php echo $breite; ?>;
}
</style>
</head>

<body>
<div id="wrapper_top">
	<div id="toolbar">
        	<?php if($zeit == "on") echo '<div id="time"><div class="inside"><div id="Uhr">&nbsp;</div></div></div>'; ?>
            <?php if($rss == "on") echo '<div id="syndicate"><div class="inside"><jdoc:include type="modules" name="syndicate" /></div></div>'; ?>
            	<div id="search"><div class="inside"><jdoc:include type="modules" name="TopSearch" style="xhtml" /></div></div>
                <div id="fontsize"><div class="inside"><script type="text/javascript">
				//<![CDATA[
					document.write('<a href="index.php" title="Schrift vergr&ouml;&szlig;ern" onclick="changeFontSize(2); return false;"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/bigger.png" alt="Schrift vergr&ouml;&szlig;ern" /></a>');
					document.write('<a href="index.php" title="Schrift zur&uuml;cksetzen" onclick="revertStyles(); return false;"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/normal.png" alt="Schrift zur&uuml;cksetzen" /></a>');
					document.write('<a href="index.php" title="Schrift verkleinern" onclick="changeFontSize(-2); return false;"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/smaller.png" alt="Schrift verkleinern" /></a></p>');
				//]]>
		</script></div></div>
    </div>
    <div id="loba">
    <div id="logo"><div class="inside"><a href="<?php echo $this->baseurl ?>" title="Home"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.png" alt="<?php echo $mainframe->getCfg('sitename');?>
" title="<?php echo $mainframe->getCfg('sitename');?>
" /></a></div></div>
    <div id="banner"><div class="inside"><jdoc:include type="modules" name="BannerTop" style="xhtml" /></div></div>
    </div>
    <div id="topmenu"><jdoc:include type="modules" name="TopMenu" style="xhtml" /></div>
    <div id="head">
    	<div id="head_in" class="breite">        
		
        		<?php
        		if ($this->countModules('Position2') || $this->countModules('Position3'))
				{
					echo '<div id="position1"><div class="inside"><jdoc:include type="modules" name="Position1" style="xhtml" /></div></div>
					      <div id="position2"><div class="inside"><jdoc:include type="modules" name="Position2" style="xhtml" /></div></div>
						  <div id="position3"><div class="inside"><jdoc:include type="modules" name="Position3" style="xhtml" /></div></div>';
				}
				else
				{
					echo '<div class="inside"><jdoc:include type="modules" name="Position1" style="xhtml" /></div>';
				}
				?>
				            <div class="clearBoth"></div>
        </div>
    </div>
    <div id="bread"><div class="inside"><jdoc:include type="module" name="breadcrumbs" /></div></div>
    <div class="clearBoth"></div>
	</div>
<div id="shadow"></div>
<div id="wrapper_bottom">
	<div id="content" class="breite">
        <?php
	if ($this->countModules('right'))
	{ 
		echo '
    	<div id="left">
        	<div class="inside">
				<jdoc:include type="modules" name="left" style="xhtml" />
             </div>
         </div>
    	<div id="center">
        	<div class="inside">
            	<jdoc:include type="message" />
				<jdoc:include type="component" />
             </div>
         </div>
    	<div id="right">
        	<div class="inside">
				<jdoc:include type="modules" name="right" style="xhtml" />
            </div>
        </div>
        <div class="clearBoth"></div>';
	}
	else
	{
	echo '
		<div id="left">
        	<div class="inside">
				<jdoc:include type="modules" name="left" style="xhtml" />
             </div>
         </div>
    	<div id="center_big">
        	<div class="inside">
            	<jdoc:include type="message" />
				<jdoc:include type="component" />
             </div>
         </div>';
	}
	?>
    </div>
    
    <div id="footer_shadow" class="breite"></div>
    <div id="footer" class="breite">
    <div id="footer_menu"><jdoc:include type="modules" name="FootMenu" style="xhtml" /></div>
    <div id="footer_in">
            		<?php
        		if ($this->countModules('Position5') || $this->countModules('Position6'))
				{
					echo '<div id="position4"><div class="inside"><jdoc:include type="modules" name="Position4" style="xhtml" /></div></div>
					      <div id="position5"><div class="inside"><jdoc:include type="modules" name="Position5" style="xhtml" /></div></div>
						  <div id="position6"><div class="inside"><jdoc:include type="modules" name="Position6" style="xhtml" /></div></div>';
				}
				else
				{
					echo '<div class="inside"><jdoc:include type="modules" name="Position1" style="xhtml" /></div>';
				}
				?>
    </div>    
    </div>
    <div class="clearBoth"></div>
    <div id="footer_end" class="breite"><div id="footer_end_left"></div></div>
    <div id="copyright"><jdoc:include type="modules" name="footer" style="xhtml" /><?php /* Dieser Link darf NICHT entfernt werden! This link may NOT be removed! */ ?>Joomla <a href="http://www.webgau.de/forum.html" title="Webdesign Forum">WebDesign</a> &amp; <a href="http://www.webgau.de/hilfe.html" title="Seo, CMS, Internet">Joomla Templates</a> by Webgau.de</div><?php /* Dieser Link darf NICHT entfernt werden! This link may NOT be removed! */ ?></div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
